﻿using System.Xml.Serialization;

namespace Inkubator.Wizard.Model.Model
{
    public class Text: TextComponent
    {
        /// <summary>
        /// Label represent the caption that will identified the component
        /// and will show the user what this component represent.
        /// </summary>
        public string label;

        /// <summary>
        /// Set if this text component will hide the user input.
        /// </summary>
        [XmlAttribute("password")]
        public bool password;

        public Text() { }

        public Text( string label, int max, int min, bool pass, string validate )
        {
            this.label = label;
            this.maxLength = max;
            this.minLength = min;
            this.password = pass;
            this.validate = validate;
        }

    }
}
